#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long n,i;
	double m,a=0,b=0;
	cin>>n;
	for(i=1;i<=n;i++)
	{
		cin>>m;
		i%2==0?b+=m:a+=m;
	}
	if(a>b) cout<<"Greater than";
	if(a<b) cout<<"Less than";
	if(a==b) cout<<"Equal";
    return 0;
}
